package com.cn.ant.modules.score.entity;

import com.cn.ant.common.utils.excel.annotation.ExcelField;
import org.hibernate.validator.constraints.Length;

import com.cn.ant.common.persistence.MyDataEntity;

/**
 * 批次线Entity
 * @author AntDream
 * @version 2015-08-18
 */
public class BatchLine extends MyDataEntity<BatchLine> {
	
	private static final long serialVersionUID = 1L;
	private String provice;		// 省份编码
	private String type;		// 科类（文理）
	private int year;		// 年份
	private String batchLevel;		// 批次类别
	private String batchScore;		// 批次线分数

	/**
	 * 扩展字段
	 */
	private String provinceName;

	public BatchLine() {
		super();
	}

	public BatchLine(String id){
		super(id);
	}

	@Length(min=0, max=32, message="省份编码长度必须介于 0 和 32 之间")
	@ExcelField(title = "省份编码", align = 0, sort = 20, type = 0)
	public String getProvice() {
		return provice;
	}

	public void setProvice(String provice) {
		this.provice = provice;
	}
	
	@Length(min=0, max=32, message="科类（文理）长度必须介于 0 和 32 之间")
	@ExcelField(title = "科类", align = 0, sort = 30, type = 0,dictType = "kemu_type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=4, message="年份长度必须介于 0 和 4 之间")
	@ExcelField(title = "年份", align = 0, sort = 40, type = 0)
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	@Length(min=0, max=4, message="批次类别长度必须介于 0 和 4 之间")
	@ExcelField(title = "批次类别", align = 0, sort = 40, type = 0,dictType = "batch_level")
	public String getBatchLevel() {
		return batchLevel;
	}

	public void setBatchLevel(String batchLevel) {
		this.batchLevel = batchLevel;
	}

	@ExcelField(title = "批次分数", align = 0, sort = 50, type = 0)
	public String getBatchScore() {
		return batchScore;
	}

	public void setBatchScore(String batchScore) {
		this.batchScore = batchScore;
	}

	@ExcelField(title = "省份名称", align = 0, sort = 10, type = 0)
    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }
}